﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using static System.Net.Mime.MediaTypeNames;
using System.Diagnostics.Eventing.Reader;

namespace 共享单车管理系统
{
    public partial class Tinder : Form
    {
        public Tinder()
        {
            InitializeComponent();
        }

        private void 修改密码ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            star.changePwd ch1 = new star.changePwd();
            ch1.ShowDialog();
        }

        private void 个人信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            star.Person p1 = new star.Person();
            p1.ShowDialog();
        }

        private void 添加单车ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            star.Tgirbut.Inster_prod in1 = new star.Tgirbut.Inster_prod();
            in1.ShowDialog();
        }

        private void 修改单车信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            star.Tgirbut.Upater_prod u1 = new star.Tgirbut.Upater_prod();
            u1.ShowDialog();
        }

        private void 删除单车信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            star.Tgirbut.Dleter_prod d1 = new star.Tgirbut.Dleter_prod();
            d1.ShowDialog();
        }

        private void 订单审核ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            oeder.chek_oeder c1 = new oeder.chek_oeder();
            c1.ShowDialog();

        }

        private void 查看日志ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Log.Select_Order s1 = new Log.Select_Order();
            s1.ShowDialog();
        }

        private void 添加部门信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {

            if (Login.Bflag == false)
            {
                DialogResult dr = MessageBox.Show("你不是管理员无权操作？", "提示", MessageBoxButtons.OKCancel,
                    MessageBoxIcon.Information);
            
          
                if (dr == DialogResult.OK)
                {
                    this.Close();
                    Login l1 = new Login();
                    l1.ShowDialog();
                }
                else
                {
                    return;
                }

            }
            else
            {
                DDA.inster_1 i1= new DDA.inster_1();
                i1.ShowDialog();
            }

            
        }

        private void 修改部门信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DDA.uptaer_1 i1= new DDA.uptaer_1();
            i1.ShowDialog();
        }

        private void 删除部门ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DDA.Dleter_1 d1= new DDA.Dleter_1();
            d1.ShowDialog();
        }

        private void 修改客户ToolStripMenuItem_Click(object sender, EventArgs e)
        {

            if (Login.Bflag == false)
            {
                DialogResult dr = MessageBox.Show("你不是管理员无权操作？", "提示", MessageBoxButtons.OKCancel,
                    MessageBoxIcon.Information);


                if (dr == DialogResult.OK)
                {
                    this.Close();
                    Login l1 = new Login();
                    l1.ShowDialog();
                }
                else
                {
                    return;
                }

            }
            else
            {
                Uptaer_kh s1 = new Uptaer_kh();
                s1.ShowDialog();
            }
            
        }

        private void 业绩查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Profrom j1=new Profrom();
            j1.ShowDialog();
        }
    }
}
